package sitescoring.controller;

public class ReturnPoint {
	public static int lengthDomain(int length,int down)
	{
		int point = 0;
		if(length<4)
		{
			point = 10;
		}
		if(length>=4 && length <=4)
		{
			point = 9;
		}
		if(length>=5 && length <=5)
		{
			point = 8;
		}
		if(length>=6 && length <=6)
		{
			point = 7;
		}
		if(length>=7 && length <=7)
		{
			point = 6;
		}
		if(length>=8 && length <=8)
		{
			point = 5;
		}
		if(length>=9 && length <=9)
		{
			point = 4;
		}
		if(length>=10 && length <=10)
		{
			point = 3;
		}
		if(length>=11 && length <=11)
		{
			point = 2;
		}
		if(length>=12)
		{
			point = 1;
		}
		point = point-down;
		if(point<0)point=0;
		return point;
	}
}
